package com.yenlien.traceyun.usercenter.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-07-21
 * @description:自定义产品不同版本
 **/

@Entity
@Table(name = "t_custom_app_version")
public class CustomAppVersion extends BaseEntity {

    //自定义产品id
    @Column(name = "custom_app_id", length = 32)
    private String customAppId;

    //应用id
    @Column(name = "app_id", length = 32)
    private String appId;

    //产品名称
    @Column(name = "name", length = 50)
    private String name;

    //产品价格
    @Column(name = "price", length = 15)
    private String price;

    //产品icon
    @Column(name = "icon", length = 200)
    private String icon;

    //产品版本名称
    @Column(name = "version_name", length = 50)
    private String versionName;

    //最大用户量
    @Column(name = "max_user", length = 6)
    private int maxUser;

    //最大扫描量
    @Column(name = "max_scan", length = 10)
    private int maxScan;

    //最大品种数量
    @Column(name = "max_product", length = 6)
    private int maxProduct;

    //最大打印数量
    @Column(name = "max_print", length = 10)
    private long maxPrint;
    //基地数量
    @Column(name = "bases_num", length = 6)
    private int basesNum;
    //地块数量
    @Column(name = "soil_num", length = 6)
    private int soilNum;
    //批次数量（批次/年）
    @Column(name = "batch_num", length = 6)
    private int batchNum;
    @Column
    private String modelIds;//模型库类别ID（种植类别）(多个逗号隔开)
    @Column(name = "model_num", length = 6)
    private int modelNum; //作物种类
    @Transient
    private List<ResourceCustomAppVersion> res;

    public List<ResourceCustomAppVersion> getRes() {
        return res;
    }

    public void setRes(List<ResourceCustomAppVersion> res) {
        this.res = res;
    }

    public int getBasesNum() {
        return basesNum;
    }

    public void setBasesNum(int basesNum) {
        this.basesNum = basesNum;
    }

    public int getSoilNum() {
        return soilNum;
    }

    public void setSoilNum(int soilNum) {
        this.soilNum = soilNum;
    }

    public int getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(int batchNum) {
        this.batchNum = batchNum;
    }

    public String getModelIds() {
        return modelIds;
    }

    public void setModelIds(String modelIds) {
        this.modelIds = modelIds;
    }

    public int getModelNum() {
        return modelNum;
    }

    public void setModelNum(int modelNum) {
        this.modelNum = modelNum;
    }

    public String getCustomAppId() {
        return customAppId;
    }

    public void setCustomAppId(String customAppId) {
        this.customAppId = customAppId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public int getMaxUser() {
        return maxUser;
    }

    public void setMaxUser(int maxUser) {
        this.maxUser = maxUser;
    }

    public int getMaxScan() {
        return maxScan;
    }

    public void setMaxScan(int maxScan) {
        this.maxScan = maxScan;
    }

    public int getMaxProduct() {
        return maxProduct;
    }

    public void setMaxProduct(int maxProduct) {
        this.maxProduct = maxProduct;
    }

    public long getMaxPrint() {
        return maxPrint;
    }

    public void setMaxPrint(long maxPrint) {
        this.maxPrint = maxPrint;
    }
}
